<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>My JSP 'demoList.jsp' starting page</title>
		<link rel="stylesheet" href="css/table.css" type="text/css"></link>
		<!-- 分页样式 -->
		<link rel="stylesheet" href="js/pagination/pagination.css" type="text/css"></link>

		<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
		<!-- 分页 -->
		<script type="text/javascript" src="js/pagination/jquery.pagination.js"></script>
		
		<script type="text/javascript" src="dwr/engine.js"></script>
		<script type="text/javascript" src="dwr/interface/DemoDwr.js"></script>
		<script type="text/javascript" src="demo/js/demoList.js"></script>
		<script type="text/javascript">
		    var pageIndex = ${pageIndex};     //当前页码
		    var pageSize = ${pageSize};     //每页显示条数初始化，修改显示条数，修改这里即可
			var pageCount= ${pageCount};		//总记录数

		</script>
	</head>
	<body>
	<div id="container" >
		<table id="result"  >
				<tr>
					<th width="1%" >
						<center>
							<input type="checkbox" id="chkAll" value="chkAll" />
						</center>
					</th>
					<th width="8%">
						id
					</th>
					<th width="25%">
						标题
					</th>
					<th>
						内容
					</th>
					<th width="15%">
						操作
					</th>
				</tr>
				<s:iterator value="demos">
					<tr>
						<td><center><input type="checkbox" name="chk" value="${id}" " /></center></td>
						<td><s:property value="id" /> </td>
						<td><s:property value="title" /> </td>
						<td><s:property value="content" /> </td>
						<td>
							<a href="#${id}" onclick="return delDemo(${id});">删除</a>
						</td>
					</tr>
				</s:iterator>
		</table>
		<div style="float:left;" >
			<input type="button" id="delAll" value="删除选中"/>
		</div>
		<div id="Pagination" style="padding-left:10px;">
		</div>
	</div>
	</body>
</html>
